//
//  WPKindsCollectionReusableView.m
//  ZhongChouPingTai
//
//  Created by WeiPan on 16/4/5.
//  Copyright © 2016年 HuaYiSoftware. All rights reserved.
//

#import "WPKindsCollectionReusableView.h"

@interface WPKindsCollectionReusableView ()
@end
@implementation WPKindsCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.titleLabel = ({
            UILabel *dispLaylable = [[UILabel alloc]initWithFrame:CGRectMake(10*DHFlexibleHorizontalMutiplier(), 0, 250, self.bounds.size.height)];
            dispLaylable.font = [UIFont boldSystemFontOfSize:15*DHFlexibleHorizontalMutiplier()];
            dispLaylable.textColor = COLOR_RGB(211, 211, 211, 1);
            dispLaylable;
        });
        [self addSubview:_titleLabel];
    }
    return self;
}
- (void)addLine {
    [self addSubview:self.line];
}
#pragma mark - getter
- (UIView *)line {
    if (!_line) {
        _line = ({
            UIView * view = [[UIView alloc]initWithFrame:CGRectMake(0, self.bounds.size.height - 1, self.bounds.size.width, 1)];
            view.backgroundColor = COLOR_RGB(241, 241, 241, 1);
            view;
        });
    }
    return _line;
}
@end
